package com.atguigu.springcloud.service;

import com.atguigu.springcloud.config.FeginConfig;
import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author csc
 * @Date 2023/3/15 0015 15:21
 * @Version 1.0
 */
@Component
@FeignClient(value = "nacos-provide-payment",fallback = PyamentFallbackService.class)
public interface PaymentService {


    @RequestLine("GET /paymentSQL/{id}")
    public CommonResult<Payment> paymentSQL(@Param("id") Long id);

}
